//
//  RequestManager.h
//  MusicDemo
//
//  Created by lanou on 16/6/15.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
@class Music;
//刷新UI（加载完成后）
typedef void(^musicBlock)();
@interface RequestManag : NSObject
+ (RequestManager *)creatRequest;

//通过url获取数据
- (void)fetchDataWithUrl:(NSString *)url updateUI:(musicBlock)block;

//返回对应下标的模型
- (Music *)returnMusicAtIndex:(NSInteger)index;

//返回数据个数
- (NSInteger)returnArrayCount;

@end
